//
//  LZHeadViewController.m
//  沙哈拉FM
//
//  Created by dllo on 15/11/4.
//  Copyright © 2015年 S1mpl3. All rights reserved.
//

#import "LZHeadViewController.h"

@interface LZHeadViewController ()
@property(nonatomic, strong)UIWebView *webView;
@end

@implementation LZHeadViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor orangeColor];
    self.title = _longTitle;
}
- (void)loadView{
    [super loadView];
    
    //    NSString *dataString = [NSString stringWithContentsOfURL:[NSURL URLWithString:@"https://m.ximalaya.com/xmposter/top_list?app=iting&version=4.3.20"] encoding:NSUTF8StringEncoding error:nil];
    //    NSData *htmlData = [dataString dataUsingEncoding:NSUTF8StringEncoding];
    
    
    
    //    _webView = [[UIWebView alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)];
    //    NSURL *url = [NSURL URLWithString:@"https://m.ximalaya.com/xmposter/top_list?app=iting&version=4.3.20"];
    //    NSURLRequest *request = [NSURLRequest requestWithURL:url];
    //    [_webView loadRequest:request];
    //
    //    UIButton *button = [UIButton buttonWithType:UIButtonTypeSystem];
    //    button.frame = CGRectMake(325, 0, 50, 50);
    //    //    button.layer.borderWidth = 2.0;
    //    [button setTitle:@"刷新" forState:UIControlStateNormal];
    //    [button addTarget:self action:@selector(buttonAction) forControlEvents:UIControlEventTouchUpInside];
    //    [self.view addSubview:button];
    
}
-(void)buttonAction{
    [_webView goBack];
    //    [_webView reload];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
